package com.lg.service.impl;

import com.lg.api.Robot;
import org.apache.dubbo.common.extension.ExtensionLoader;

/**
 * @author lg
 * @date 2021/5/5
 */
public class HzRobot implements Robot {
    public void sayHello() {
        System.out.println("杭州 robot say hello");
    }

    public static void main(String[] args) {
        ExtensionLoader<Robot> extensionLoader =
                ExtensionLoader.getExtensionLoader(Robot.class);
        Robot hzRobot = extensionLoader.getExtension("hzRobot");
        hzRobot.sayHello();

    }
}
